<?php

namespace App\Library\Requests\Auction;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\IdNumRule;
use App\Library\Rules\MediaImgRule;

class ApplyCertificationRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'storeName' => 'nullable|string|max:64',
            'realName' => 'required|string|max:64',
            'idNum' => ['required', 'string', 'size:18', new IdNumRule],
            'authFileId' => ['required', 'string', 'size:20', new MediaImgRule],
            'authReverseFileId' => ['required', 'string', 'size:20', new MediaImgRule],
            'licenceFileId' => ['nullable', 'string', 'size:20', new MediaImgRule],
            'certification' => 'nullable|array',
            'userId' => 'nullable|integer|min:1',
        ];
    }
}
